<script>
  // var tagData = [{"id":12,"name":"长者"},{"id":13,"name":"工厂"},{"id":14,"name":"小学生"},{"id":15,"name":"大学生"},{"id":16,"name":"研究生"},{"id":17,"name":"教师"},{"id":18,"name":"记者"}];    
  var tagData = <?php echo $employee; ?>;
  var selected = "<?php echo $setting['manager_user_id']; ?>";
  layui.config({
    base : '../../../../application/layui-select-ext/'
  }).extend({
    selectN: './layui_extends/selectN',
    selectM: './layui_extends/selectM',
  }).use(['layer','form','jquery','selectN','selectM'],function(){
        $ = layui.jquery;	
        var form = layui.form
        ,selectN = layui.selectN
        ,selectM = layui.selectM;

        //多选标签-基本配置
        var tagIns1 = selectM({
          //元素容器【必填】
          elem: '#ai_manager_user_id'
          //候选数据【必填】
          ,data: tagData
          ,width:400
          ,selected: selected.split(",")			
        }); 

        form.on('submit(formMemberAdd)', function(data){
          
          // var manager_user_id = data.field.manager_select;
          // $('#manager_user_id').val(manager_user_id);
        });
  });
</script>